package com.itheima.article.mapper;

import com.itheima.article.dto.ArticleHomeDto;
import com.itheima.article.pojo.ApArticle;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @description <p>已发布的文章信息 Mapper 接口</p>
 *
 * @version 1.0
 * @package com.itheima.article.mapper
 */
public interface ApArticleMapper extends BaseMapper<ApArticle> {


    /**
     * App 端文章列表分页查询
     * @param dto
     * @param type
     * @return
     */
    List<ApArticle> findPage(ArticleHomeDto dto, int type);
}
